<?php
$sqla = 'call sp_getCentros()';
$combo_ctr = '';
$resa = $mysqli->query($sqla) or die($mysqli->error.__LINE__);
if ($resa){
	while ($rowa = $resa->fetch_assoc()){
		$combo_ctr = $combo_ctr ."<option value='".$rowa['CentroID']."' title='".$rowa['CentroDir']."'>".$rowa['CentroNom']."</option>";
	}
	echo $combo_ctr;
	$resa->close();
	$mysqli->check_result();
}
?>

